package com.lty.zyq.entity.key;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Embeddable;
import java.io.Serializable;

@Embeddable
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MealOrderKey implements Serializable {

    String date;
    Integer whichMeal;
    Long userId;

    @Override
    public String toString() {
        return "OrderKey [date=" + date + ", whichMeal=" + whichMeal + ", userId=" + userId + "]";
    }
}